﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace Ocean.His.MedicalInsurance
{
    /// <summary>
    /// 3301
    /// 目录对照上传
    /// </summary>
    [DataContract]
    public class SI3301Data
    {
        /// <summary>
        /// 定点医药机构目录编号
        /// </summary>
        [DataMember(Name = "fixmedins_hilist_id")]
        public string FixmedinsHilistId { get; set; }

        /// <summary>
        /// 定点医药机构目录名称
        /// </summary>
        [DataMember(Name = "fixmedins_hilist_name")]
        public string FixmedinsHilistName { get; set; }

        /// <summary>
        /// 目录类别
        /// </summary>
        [DataMember(Name = "list_type")]
        public string ListType { get; set; }

        /// <summary>
        /// 医疗目录编码
        /// </summary>
        [DataMember(Name = "med_list_codg")]
        public string MedListCodg { get; set; }

        /// <summary>
        /// 开始日期
        /// </summary>
        [DataMember(Name = "begndate")]
        public string Begndate { get; set; }

        /// <summary>
        /// 结束日期
        /// </summary>
        [DataMember(Name = "enddate")]
        public string Enddate { get; set; }

        /// <summary>
        /// 批准文号
        /// </summary>
        [DataMember(Name = "aprvno")]
        public string Aprvno { get; set; }

        /// <summary>
        /// 剂型
        /// </summary>
        [DataMember(Name = "dosform")]
        public string Dosform { get; set; }

        /// <summary>
        /// 除外内容
        /// </summary>
        [DataMember(Name = "exct_cont")]
        public string ExctCont { get; set; }

        /// <summary>
        /// 项目内涵
        /// </summary>
        [DataMember(Name = "item_cont")]
        public string ItemCont { get; set; }

        /// <summary>
        /// 计价单位
        /// </summary>
        [DataMember(Name = "prcunt")]
        public string Prcunt { get; set; }

        /// <summary>
        /// 规格
        /// </summary>
        [DataMember(Name = "spec")]
        public string Spec { get; set; }

        /// <summary>
        /// 包装规格
        /// </summary>
        [DataMember(Name = "pacspec")]
        public string Pacspec { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [DataMember(Name = "memo")]
        public string Memo { get; set; }
    }

    /// <summary>
    /// 
    /// </summary>
    [DataContract]
    public class SI3301InputModel
    {
        [DataMember(Name = "data")]
        public List<SI3301Data> SI3301Data { get; set; }
    }

    /// <summary>
    /// 3301
    /// 目录对照上传
    /// </summary>
    [DataContract]
    public class SI3301RequestModel : SIBaseRequestModel
    {
        /// <summary>
        /// 交易输入
        /// </summary>
        [DataMember(Name = "input")]
        public SI3301InputModel Input { get; set; }

        public SI3301RequestModel(MedicalInsuranceOption medicalInsuranceOption) : base(medicalInsuranceOption)
        {
            Infno = "3301";
            Input = new SI3301InputModel();
            Input.SI3301Data = new List<SI3301Data>();
            SI3301Data sI3301Data = new SI3301Data();
            //sI3301Data.FixmedinsHilistId = fixmedinsHilistId;
            //sI3301Data.FixmedinsHilistName = fixmedinsHilistName;
            //sI3301Data.ListType = listType;
            //sI3301Data.MedListCodg = medListCodg;
            sI3301Data.Begndate = DateTime.Now.ToString("yyyy-MM-dd");
            sI3301Data.Enddate = DateTime.Now.AddYears(10).ToString("yyyy-MM-dd");
            Input.SI3301Data.Add(sI3301Data);
        }
    }
}
